package com.example.teach.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.teach.entity.Category;
import com.example.teach.entity.Result;
import com.example.teach.mapper.CategoryMapper;
import com.example.teach.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public Result selectById(Integer id) {
        return Result.success(categoryMapper.selectById(id));
    }
}
